package com.zhx.ad.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhx.ad.entity.AdPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *describe: 
 *
 *@author zhanghaixuan
 *@date 2019/02/02
 **/
public interface AdPlanMapper extends BaseMapper<AdPlan> {

	AdPlan findByIdAndUserId(@Param("id") String id, @Param("userId") String userId);

	List<AdPlan> findAllByIdInAndUserId(Map<String,Object> map);

	AdPlan findByUserIdAndPlanName(@Param("userId") String userId, @Param("planName") String planName);

	List<AdPlan> findAllByPlanStatus(@Param("status") Integer status);
}
